<?php
	
	@session_start();
	require_once('../../lib/'.'BaseDir.inc.htm');
	require_once (EIU_LIB.'View.class.htm');	
	
	require_once (EIU_CLASS.'LoginClass.htm');

	/*if(checkSession('category.htm')==true){
		$data1 = setSession();
	}*/
	if(isset($_SESSION['userID'])&&!empty($_SESSION['userID']))
	{
		//Set init value info
		$data["titlePage"] = "B1.TÌNH TRẠNG CỦA HÀNG HÓA";	
		$data1["titlePage"] = $data["titlePage"];	
		
		
		$data['userName'] 			= $_SESSION['userName'];
		$data['userLoginTime'] 		= $_SESSION['userLoginTime'];
		$data['userId'] 			= $_SESSION['userID'];
		$data['userEID']			= $_SESSION['userEID'];
		$data['isLogin']			= $_SESSION['isLogin'];		
		
		$view = new View();		
		$data1["Header"] = $view->returnTmpl("header.tmpl","n",$data);
		
		$view->showTmpl("status.tmpl","n",$data1);	
	}
	else
	{
		$strLocation = "login.htm";
		echo '<script type="text/javascript">';
		echo " location.href='".$strLocation."';";
		echo "</script>";
	}	
	
?>
